#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include<vector>
using namespace std;

int n;

string proc(int n)
{
    vector<string> v;
    string s="";
    int count = 0;
    while (n)
    {
        int res = n % 2;
        n /= 2;
        if(res!=0) {
            s="";
            s+= "2("+to_string(count)+")";
            if(count>1) {
                string temp = proc(count);
                string res = "2("+  temp + ")";
                v.push_back(res);
            }
            else if(count==1) {
                v.push_back("2");
            }
            else v.push_back(s);
        }
        count ++;
    }
    s="";
    reverse(v.begin(),v.end());
    for(int i=0;i<v.size();i++)
    {
        s+=v[i];
        if(i!=v.size()-1) s+="+";
    }
    return s;
}

int main()
{
    cin >> n;
    cout << proc(n)<<endl;
    //system("pause");
    return 0;
}

